package com.fuint.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fuint.framework.pagination.PaginationRequest;
import com.fuint.framework.pagination.PaginationResponse;
import com.fuint.repository.model.MtExamRecord;
import com.fuint.framework.exception.BusinessCheckException;
import java.util.List;
import java.util.Map;

/**
 * 体检记录表业务接口
 *
 * Created by whileu
 * CopyRight https://www.fuint.cn
 */
public interface ExamRecordService extends IService<MtExamRecord> {

    /**
     * 分页查询列表
     *
     * @param paginationRequest
     * @return
     */
    PaginationResponse<MtExamRecord> queryExamRecordListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;

    /**
     * 添加体检记录表
     *
     * @param  mtExamRecord
     * @throws BusinessCheckException
     * @return
     */
    MtExamRecord addExamRecord(MtExamRecord mtExamRecord) throws BusinessCheckException;

    /**
     * 根据ID获取体检记录表信息
     *
     * @param id ID
     * @throws BusinessCheckException
     * @return
     */
    MtExamRecord queryExamRecordById(Integer id) throws BusinessCheckException;

    /**
     * 根据ID删除体检记录表
     *
     * @param id ID
     * @param operator 操作人
     * @throws BusinessCheckException
     * @return
     */
    void deleteExamRecord(Integer id, String operator) throws BusinessCheckException;

    /**
     * 更新体检记录表
     * @param  mtExamRecord
     * @throws BusinessCheckException
     * @return
     * */
    MtExamRecord updateExamRecord(MtExamRecord mtExamRecord) throws BusinessCheckException;

    /**
     * 根据条件搜索体检记录表
     *
     * @param params 查询参数
     * @throws BusinessCheckException
     * @return
     * */
    List<MtExamRecord> queryExamRecordListByParams(Map<String, Object> params) throws BusinessCheckException;
}
